import React from "react"
import { Route, Switch } from "react-router-dom"

import Home from "../containers/Home"
import ProductsService from "../containers/ProductsService"
import Information from "../containers/Information"
import CooperationCase from "../containers/CooperationCase"
import PlatForm from "../containers/PlatForm"
import Mine from "../containers/Mine"
import NotFound from "../containers/NotFound"

export default class SubRouter extends React.Component {
  render() {
    return (
      <Switch>
        <Route exact path="/" component={ Home }></Route>
        <Route path="/productsService" component={ ProductsService }></Route>
        <Route path="/information" component={ Information }></Route>
        <Route path="/cooperationCase" component={ CooperationCase }></Route>
        <Route path="/platForm" component={ PlatForm }></Route>
        <Route path="/mine" component={ Mine }></Route>
        <Route component={ NotFound }></Route>
      </Switch>
    )
  }
}